import { BaseService, Service, Permission } from '@/cool';

@Service('crm/order')
export default class extends BaseService {
	@Permission('export')
	export(params) {
		return this.request({
			url: '/export',
			params: {
				...params
			}
		});
	}

	@Permission('million')
	million(params) {
		return this.request({
			url: '/million',
			params: {
				...params
			}
		});
	}

	@Permission('millionExport')
	millionExport(params) {
		return this.request({
			url: '/millionExport',
			params: {
				...params
			}
		});
	}

	@Permission('millionItemRank')
	millionItemRank(params) {
		return this.request({
			url: '/millionItemRank',
			params: {
				...params
			}
		});
	}

	// 京礼金小程序渠道报表
	@Permission('jljWxOrder')
	jljWxOrder(params) {
		return this.request({
			url: '/jljWxOrder',
			params: {
				...params
			}
		});
	}
	@Permission('millionItemRankExport')
	millionItemRankExport(params) {
		return this.request({
			url: '/millionItemRankExport',
			params: {
				...params
			}
		});
	}
	@Permission('millionMenuExport')
	millionMenuExport(params) {
		return this.request({
			url: '/millionMenuExport',
			params: {
				...params
			}
		});
	}

	@Permission('millionJdItemRank')
	millionJdItemRank(params) {
		return this.request({
			url: '/millionJdItemRank',
			params: {
				...params
			}
		});
	}
}
